﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 厂商价表行DTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class PurPriceLinesAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public PurPriceLinesAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
					Price=0m; 
		
		
					DocLineNo= 0; 
							Active=false; 
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.Uom != null) 
			{
				this.Uom.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.ItemInfo != null) 
			{
				this.ItemInfo.DoSerializeKeyList(dict);
			}
	        	        	        	        			if (this.PurPriceListAITDTO != null) 
			{
				this.PurPriceListAITDTO.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public PurPriceLinesAITDTOData(  ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData uom  , System.String toDate  , System.Decimal price  , ufida.u9.ait.openapi.CopyOfItemInfoData itemInfo  , System.String fromDate  , System.Int32 docLineNo  , System.Boolean active  , ufida.u9.ait.openapi.PurPriceListAITDTOData purPriceListAITDTO  )
		{
			initData();
			this.Uom = uom;
			this.ToDate = toDate;
			this.Price = price;
			this.ItemInfo = itemInfo;
			this.FromDate = fromDate;
			this.DocLineNo = docLineNo;
			this.Active = active;
			this.PurPriceListAITDTO = purPriceListAITDTO;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 单位
		/// 厂商价表行DTO.Misc.单位
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_uom ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Uom
		{
			get	
			{	
				return m_uom ;
			}
			set	
			{	
				m_uom = value ;	
			}
		}
			
		

		/// <summary>
		/// 失效日期
		/// 厂商价表行DTO.Misc.失效日期
		/// </summary>
		private System.String m_toDate ;
		[DataMember(IsRequired=false)]
		public System.String ToDate
		{
			get	
			{	
				return m_toDate ;
			}
			set	
			{	
				m_toDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 价格
		/// 厂商价表行DTO.Misc.价格
		/// </summary>
		private System.Decimal m_price ;
		[DataMember(IsRequired=false)]
		public System.Decimal Price
		{
			get	
			{	
				return m_price ;
			}
			set	
			{	
				m_price = value ;	
			}
		}
			
		

		/// <summary>
		/// 料品
		/// 厂商价表行DTO.Misc.料品
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfItemInfoData m_itemInfo ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfItemInfoData ItemInfo
		{
			get	
			{	
				return m_itemInfo ;
			}
			set	
			{	
				m_itemInfo = value ;	
			}
		}
			
		

		/// <summary>
		/// 生效日期
		/// 厂商价表行DTO.Misc.生效日期
		/// </summary>
		private System.String m_fromDate ;
		[DataMember(IsRequired=false)]
		public System.String FromDate
		{
			get	
			{	
				return m_fromDate ;
			}
			set	
			{	
				m_fromDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 行号
		/// 厂商价表行DTO.Misc.行号
		/// </summary>
		private System.Int32 m_docLineNo ;
		[DataMember(IsRequired=false)]
		public System.Int32 DocLineNo
		{
			get	
			{	
				return m_docLineNo ;
			}
			set	
			{	
				m_docLineNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 是否有效
		/// 厂商价表行DTO.Misc.是否有效
		/// </summary>
		private System.Boolean m_active ;
		[DataMember(IsRequired=false)]
		public System.Boolean Active
		{
			get	
			{	
				return m_active ;
			}
			set	
			{	
				m_active = value ;	
			}
		}
			
		

		/// <summary>
		/// 厂商价表头DTO
		/// 厂商价表行DTO.Misc.厂商价表头DTO
		/// </summary>
		private ufida.u9.ait.openapi.PurPriceListAITDTOData m_purPriceListAITDTO ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.PurPriceListAITDTOData PurPriceListAITDTO
		{
			get	
			{	
				return m_purPriceListAITDTO ;
			}
			set	
			{	
				m_purPriceListAITDTO = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																
		#endregion 
	} 	
}
